body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f5f5f5;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

.app-container {
  min-height: 100vh;
}

.main-layout {
  min-height: 100vh;
}

.site-header {
  padding: 0 24px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  z-index: 10;
}

.logo {
  height: 32px;
  margin: 16px;
  display: flex;
  align-items: center;
  color: #1890ff;
  font-size: 18px;
  font-weight: bold;
}

.site-content {
  padding: 24px;
  background: #fff;
  min-height: 280px;
}

.site-footer {
  text-align: center;
  padding: 24px 50px;
}

.sidebar {
  background: #fff;
  box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
}

/* 聊天界面样式 */
.chat-container {
  height: calc(100vh - 64px - 48px);
  display: flex;
  flex-direction: column;
}

.chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background-color: #f5f5f5;
}

.chat-message {
  margin-bottom: 12px;
  max-width: 80%;
  clear: both;
}

.message-self {
  float: right;
  background-color: #1890ff;
  color: white;
  border-radius: 10px 0 10px 10px;
  padding: 10px 14px;
}

.message-other {
  float: left;
  background-color: white;
  border-radius: 0 10px 10px 10px;
  padding: 10px 14px;
  border: 1px solid #e8e8e8;
}

.message-input {
  padding: 16px;
  border-top: 1px solid #e8e8e8;
  background-color: white;
}

/* PUA检测样式 */
.pua-risk-low {
  background-color: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #52c41a;
}

.pua-risk-medium {
  background-color: #fff7e6;
  border: 1px solid #ffd591;
  color: #fa8c16;
}

.pua-risk-high {
  background-color: #fff1f0;
  border: 1px solid #ffa39e;
  color: #f5222d;
}

.pua-alert {
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 4px;
}

.pua-tag {
  margin-left: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .site-content {
    padding: 12px;
  }
  
  .chat-message {
    max-width: 90%;
  }
} 